// 后端类型定义

const UserTypes = {
  ROLES: {
    ADMIN: 'admin',
    USER: 'user'
  },
  STATUS: {
    ACTIVE: 'active',
    INACTIVE: 'inactive'
  }
}

const ArticleTypes = {
  STATUS: {
    DRAFT: 'draft',
    PUBLISHED: 'published',
    ARCHIVED: 'archived'
  }
}

const ResponseCodes = {
  SUCCESS: 200,
  CREATED: 201,
  BAD_REQUEST: 400,
  UNAUTHORIZED: 401,
  FORBIDDEN: 403,
  NOT_FOUND: 404,
  INTERNAL_ERROR: 500
}

const UploadTypes = {
  IMAGE: ['image/jpeg', 'image/png', 'image/gif', 'image/webp'],
  MAX_SIZE: 5 * 1024 * 1024 // 5MB
}

export { UserTypes, ArticleTypes, ResponseCodes, UploadTypes } 